package com.cskaoyan.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//响应体中封装data对象的类
@NoArgsConstructor
@Data
public class CatAndBrandData {


    private List<CategoryListDTO> categoryList;

    private List<BrandListDTO> brandList;
    @NoArgsConstructor
    @Data
    public static class CategoryListDTO {
        private Integer value;
        private String label;
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            private Integer value;
            private String label;
        }
    }

    @NoArgsConstructor
    @Data
    public static class BrandListDTO {
        private Integer value;
        private String label;
    }

}
